<template>
	<view class="container">
		<web-view :src="web_url"></web-view>
	</view>
</template>

<script>
	import {EssayDetail} from '@/config/api.js';
	import {baseUrl} from "../../config/config";
	export default {
		data() {
			return {
				web_url:'http://www.baidu.com'
			}
		},
		onLoad(option) {
			this.id = option.id
			if(!this.id){
				uni.$u.toast('提交参数有误')
				this.$u.route({
					type: "back"
				})
				return false;
			}
			this.web_url=baseUrl + '/api/EssayDetail?essay_id='+this.id
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.container{
		padding: 20rpx 20rpx 0 20rpx;
	}
</style>
